﻿#ifndef SERVERTIMESYNC_H
#define SERVERTIMESYNC_H

#include "globalinstance.h"

class ServerTimeSync : public GlobalInstance<ServerTimeSync>
{
    friend class GlobalInstance<ServerTimeSync>;
    ServerTimeSync();
public:
    void setTimeLen(qint64 time_len);
    qint64 getServerTime();
    void invalidate();
private:
    qint64 diff_time_;
};

#endif // SERVERTIMESYNC_H
